package com.ruoyi.project.wework.apimodel;

import lombok.Data;

import java.util.List;

@Data
public class Department {
    // {"id":1,"name":"上海云哇哦软件科技有限公司","parentid":0,"order":100000000,"department_leader":[]},{"id":2,"name":"总部","parentid":1,"order":100000000,"department_leader":[]},{"id":3,"name":"上海分公司","parentid":1,"order":99999000,"department_leader":[]},{"id":4,"name":"总部人事部","parentid":2,"order":100000000,"department_leader":[]},{"id":5,"name":"总部财务","parentid":2,"order":99999000,"department_leader":[]}
    private Long id;
    private String name;
    private Long parentid; // 父部门id。根部门为1
    private Long order; // 在父部门中的次序值。order值大的排序靠前。值范围是[0, 2^32)
    private List<String> department_leader; // 部门负责人的UserID；第三方仅通讯录应用可获取
    
}
